package equipment_maintenance

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type EquipmentMaintenanceRouter struct {}

// InitEquipmentMaintenanceRouter 初始化 equipmentMaintenance表 路由信息
func (s *EquipmentMaintenanceRouter) InitEquipmentMaintenanceRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	equipmentMaintenanceRouter := Router.Group("equipmentMaintenance").Use(middleware.OperationRecord())
	equipmentMaintenanceRouterWithoutRecord := Router.Group("equipmentMaintenance")
	equipmentMaintenanceRouterWithoutAuth := PublicRouter.Group("equipmentMaintenance")
	{
		equipmentMaintenanceRouter.POST("createEquipmentMaintenance", equipmentMaintenanceApi.CreateEquipmentMaintenance)   // 新建equipmentMaintenance表
		equipmentMaintenanceRouter.DELETE("deleteEquipmentMaintenance", equipmentMaintenanceApi.DeleteEquipmentMaintenance) // 删除equipmentMaintenance表
		equipmentMaintenanceRouter.DELETE("deleteEquipmentMaintenanceByIds", equipmentMaintenanceApi.DeleteEquipmentMaintenanceByIds) // 批量删除equipmentMaintenance表
		equipmentMaintenanceRouter.PUT("updateEquipmentMaintenance", equipmentMaintenanceApi.UpdateEquipmentMaintenance)    // 更新equipmentMaintenance表
	}
	{
		equipmentMaintenanceRouterWithoutRecord.GET("findEquipmentMaintenance", equipmentMaintenanceApi.FindEquipmentMaintenance)        // 根据ID获取equipmentMaintenance表
		equipmentMaintenanceRouterWithoutRecord.GET("getEquipmentMaintenanceList", equipmentMaintenanceApi.GetEquipmentMaintenanceList)  // 获取equipmentMaintenance表列表
	}
	{
	    equipmentMaintenanceRouterWithoutAuth.GET("getEquipmentMaintenancePublic", equipmentMaintenanceApi.GetEquipmentMaintenancePublic)  // equipmentMaintenance表开放接口
	}
}
